package com.zmn.oms.services.interfaces.ins;

import com.zmn.oms.model.entity.ins.InsOrderSync;

import java.util.Date;
import java.util.List;

/**
 * 类描述：保险单
 *
 * @author liuying
 * @date 2019/01/23 10:48
 */
public interface InsOrderSyncService {

    /**
     * 根据订单ID查询
     * @param code
     * @return
     */
    List<InsOrderSync> listByOrderId(String code);

    /**
     * 查询未同步的数据
     * @return
     */
    List<InsOrderSync> listZmnNoSynced(Integer rows);

    /**
     * 查询未同步的数据
     * @return
     */
    List<InsOrderSync> listYeyxNoSynced(Integer rows);

    /**
     * 修改同步状态
     * @param insOrderSync
     */
    void updateSyncedByKey(InsOrderSync insOrderSync);

    /**
     * 修改同步状态
     * @param insSyncIdList
     */
    void updateZmnSyncedByKeys(List<Long> insSyncIdList);

    /**
     * 修改同步状态
     * @param insSyncIdList
     */
    void updateYeyxSyncedByKeys(List<Long> insSyncIdList);

    /**
     * 添加
     * @param insOrderSync
     * @return
     */
    int insertInsOrderSync(InsOrderSync insOrderSync);

    /**
     * 添加
     * @param insOrderSyncList
     * @return
     */
    int insertInsOrderSyncList(List<InsOrderSync> insOrderSyncList);
}
